Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracing improvements #311

Conversation

josephcummings
Copy link
Contributor

@josephcummings josephcummings commented Jun 6, 2024

Changed: Use TryParseValue when attempting to parse event metadata as JsonDocument, to prevent unneccessary exception with catch.
Changed: Use TryGetProperty when extracting tracing metadata to prevent unneccessary exception being thrown in absence thereof.
Changed: Added short-circuit to tracing logic to prevent unnecessary parsing of event data et al when there are no diagnostic listeners.

Fixes #310

@josephcummings josephcummings self-assigned this Jun 6, 2024
@josephcummings josephcummings force-pushed the josephcummings/subscription-tracing-metadata-parsing-exception branch from a769168 to 3bc302d Compare June 6, 2024 16:01
w1am
w1am previously approved these changes Jun 6, 2024
@josephcummings josephcummings force-pushed the josephcummings/subscription-tracing-metadata-parsing-exception branch from 619d2a2 to d25dd9c Compare June 6, 2024 16:58
@josephcummings josephcummings changed the title Use TryGetProperty when extracting tracing metadata Tracing improvements Jun 6, 2024
@w1am w1am self-requested a review June 6, 2024 17:04
@josephcummings josephcummings merged commit 12b6e39 into master Jun 6, 2024
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FirstChanceException when no metadata
4 participants